package com.digtime.abstractfactory;

/**
 * @author: kaiyi
 * @Date 2020/11/22 11:25
 */
public class FactoryProducer {
    public static AbstractFactory getFactory(String choice){
        if(choice.equalsIgnoreCase("SHAPE")){
            return new ShapeFactory();
        } else if(choice.equalsIgnoreCase("COLOR")){
            return new ColorFactory();
        }

        return null;

    }
}
